package com.ybbase.framework.model.po.flow;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.util.Date;

/**
 * <p>
 * 流程动作配置
 * </p>
 *
 * @author cg
 * @since 2019-12-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("act_action_config")
@ApiModel(value="ActionConfig对象", description="流程动作配置")
public class ActionConfig extends Model<ActionConfig> {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "唯一编码 : 唯一编码")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "动作编码 : 动作编码")
    private String actionCode;

    @ApiModelProperty(value = "动作名称")
    private String actionName;


    @ApiModelProperty(value = "动作类型 : 动作类型 1数据上传类 2数据验证类 3硬件控制类 4LED显示类 5数值验证类")
    private Integer actionType;

    @ApiModelProperty(value = "监听类")
    private String monitorClass;

    @ApiModelProperty(value = "监听方法 : 监听方法")
    private String monitorMethod;

    @ApiModelProperty(value = "是否发送至客户端 : 是否发送至客户端 0不发送 1发送")
    private Integer isSendClient;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
